package com.shopyourstyle.activities;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.shopyourstyle.R;

public class SingleProductPage extends Activity{
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.singleproductpage);
	    Bundle extras = getIntent().getExtras();
	    String productname = extras.getString("name");
	    String url = extras.getString("url");
	    int commentnum = extras.getInt("commentnum");
	    int fitnum = extras.getInt("fitnum");
	    TextView name = (TextView)findViewById(R.id.productname);
	    TextView price = (TextView)findViewById(R.id.productprice);
	    TextView fit = (TextView)findViewById(R.id.fititem);
	    TextView comment = (TextView)findViewById(R.id.commentitem);
	    ImageView image = (ImageView)findViewById(R.id.productimg);
	    ImageLoader imageLoader=new ImageLoader(this);
	    
	    name.setText(productname);
	    price.setText("$120");
	    fit.setText("fit +"+fitnum);
	    comment.setText(commentnum + " comments");
	    imageLoader.DisplayImage(url, this, image);
	    
	    
	}
}
